import Vue from 'vue'
import VueRouter from 'vue-router'
import TableHeadFilterView from '../views/TableHeadFilterView.vue'
import DatePickerView from '../views/DatePickerView.vue'
import TableHeadSetView from '../views/TableHeadSetView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/tableHeadSet',
    name: 'tableHeadSet',
    component: TableHeadSetView
  },
  {
    path: '/searchCom',
    name: 'searchCom',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/SearchView.vue')
    },
  },
  {
    path: '/datePicker',
    name: 'datePicker',
    component: DatePickerView
  },
  {
    path: '/tableHeadFilter',
    name: 'tableHeadFilter',
    component: TableHeadFilterView
  }
]

const router = new VueRouter({
  routes
})

export default router
